/**
 * 异或门
 */
export const XorHDL = {
    model: "Xor",
    ins: [{
        name: "a",
        next: ["w11", "w12"]
    }, {
        name: "b",
        next: ["w13", "w14"]
    }],
    outs: [{
        name: "out",
        prev: "w41"
    }],
    wires: [
        "w11", "w12", "w13", "w14",
        "w21", "w22",
        "w31", "w32",
        "w41"
    ],
    units: [{
        builtin: false,
        require: "Not",
        binding: [["in", "w12"], ["out", "w21"]]
    }, {
        builtin: false,
        require: "Not",
        binding: [["in", "w13"], ["out", "w22"]]
    }, {
        builtin: false,
        require: "And",
        binding: [["a", "w11"], ["b", "w22"], ["out", "w31"]]
    }, {
        builtin: false,
        require: "And",
        binding: [["a", "w21"], ["b", "w14"], ["out", "w32"]]
    }, {
        builtin: false,
        require: "Or",
        binding: [["a", "w31"], ["b", "w32"], ["out", "w41"]]
    }]
};
